package it.txt.ens.authorisationService.util;


public class ErrorCodes {
	
	public static final String INTERNAL_ERROR = "ENSERR001";
	
	public static final String CAPABILITY_VERIFIER_NOT_VALID = "ENSERR002";
	public static final String CAPABILITY_VERIFIER_FAILURE = "ENSERR003";
	
	public static final String PDP_EVALUATION_NOT_VALID = "ENSERR004";
	public static final String PDP_EVALUATION_FAILURE = "ENSERR005";
	
	public static final String CAPABILITY_RESOURCE_ID_PARSING_FAILURE = "ENSERR006";
	
	public static final String NAMESPACE_EXISTENCE_NOT_EXIST = "ENSERR007";
	public static final String INVALID_NAMESPACE_PATTERN_SYNTAX = "ENSERR008";
	public static final String NAMESPACE_EXISTENCE_INTERNAL_ERROR = "ENSERR009";
	
	public static final String CERTIFICATE_VERIFIER_NOT_VALID = "ENSERR010";
	public static final String CERTIFICATE_VERIFIER_FAILURE = "ENSERR011";
	
	public static final String ENS_RESOURCE_RESERVATION_FAILURE = "ENSERR012";
	public static final String ENS_OPERATION_NOT_MANAGED = "ENSERR015";
	
	public static final String INVALID_CAPABILITY_TOKEN = "ENSERR016";
	public static final String NAMESPACE_NOT_MANAGED = "ENSERR017";
	public static final String VIRTUAL_HOST_NOT_MANAGED = "ENSERR018";
	public static final String BROKER_NOT_MANAGED = "ENSERR019";
	public static final String REQUESTOR_NOT_EQUAL_TO_CAPABILITY_SUBJECT = "ENSERR020";
	public static final String REQUESTED_OPERATION_IS_NOT_GRANTED_RIGHT= "ENSERRO21";
//	private static Map<String, String> mapCodeMessage = new HashMap<String, String>(){{
//		put("ENSERR001","ENS internal error");
//		put("ENSERR002","Capability not valid");
//		put("ENSERR003","Capability validation failure");
//		put("ENSERR004","PDP capability not valid");
//		put("ENSERR005","PDP capability evaluation failure");
//		put("ENSERR006","Capability resource ID parsing failure");
//		put("ENSERR007","Namespace pattern not exist");
//		put("ENSERR008","Namespace pattern invalid syntax");
//		put("ENSERR009","Namespace pattern validation failure");
//		put("ENSERR010","Certificate not valid");
//		put("ENSERR011","Certificate validation failure");
//		put("ENSERR012","RabbitMQ user creation failure");
//		put("ENSERR013","RabbitMQ queue creation failure");
//		put("ENSERR014","RabbitMQ exchange creation failure");
//		put("ENSERR015","RabbitMQ operation not managed");
//	}};
	
	
//	public static String getErrorMessage(String statusCode){
//		return mapCodeMessage.get(statusCode);
//	}
}
